package com;

import com.config.MyConfig;
import com.service.MsgService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Application {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(MyConfig.class);
        MsgService msgService = applicationContext.getBean("msgService", MsgService.class);
        msgService.ms();
    }
}
